package com.ruoyi.job.service;

import com.ruoyi.data.service.IGetDataService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor
public class DataListServiceJob {

    private final IGetDataService iGetDataService;


    @XxlJob("setRedisJobHandler")
    public void setRedisJobHandler() throws Exception {


        iGetDataService.addDataListToRedis();

    }


    @XxlJob("setStatisticsLog")
    public void setStatisticsLog() throws Exception {
    }
}
